/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.goods.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.JoinTable;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.annotation.JoinTable.Type;
import com.jeesite.common.mybatis.mapper.query.QueryType;
import com.jeesite.modules.xcxAdmin.entity.ZtAdmin;

/**
 * 测试数据Entity
 * 
 * @author ThinkGem
 * @version 2018-04-22
 */
@Table(name = "zt_customer", alias = "a", columns = {
		@Column(name = "id", attrName = "id", label = "编号", isPK = true),
		@Column(name = "content", attrName = "content", label = "地址"),
		
		@Column(name = "status", attrName = "status", label = "状态"),
		@Column(name = "imgs", attrName = "imgs", label = "名字"),
		@Column(name = "orderid", attrName = "orderid", label = "手机号码",queryType = QueryType.LIKE),
		@Column(name = "type", attrName = "type", label = "手机号码"),
		@Column(name = "admin_id", attrName = "ztAdmin.id", label = "手机号码"),
		
		@Column(name = "create_date", attrName = "createDate", label = "创建时间"),

}, joinTable={
		@JoinTable(type=Type.LEFT_JOIN, entity=ZtAdmin.class, attrName="ztAdmin", alias="u10",
				on="u10.id = a.admin_id", columns={
					@Column(name="name", label="小程序用户名",  queryType = QueryType.LIKE),
					@Column(name="headimgurl", label="小程序头像",attrName = "headimgurl"),
			})
		
		},  orderBy = "a.create_date DESC")
public class ZtCustomer extends DataEntity<ZtCustomer> {

	private static final long serialVersionUID = 1L;
	private String content;
	private String imgs;
	private String status;
	private String orderid;
	
	private ZtAdmin ztAdmin;
	private String type;
	
	public ZtAdmin getZtAdmin() {
		return ztAdmin;
	}
	public void setZtAdmin(ZtAdmin ztAdmin) {
		this.ztAdmin = ztAdmin;
	}
	@JsonIgnore
	private Date createDate;
	@JsonIgnore
	private String updateBy;
	@JsonIgnore
	private String createBy;
	@JsonIgnore
	private Date updateDate;
	
	
	@JsonIgnore
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getImgs() {
		return imgs;
	}
	public void setImgs(String imgs) {
		this.imgs = imgs;
	}
	public String getOrderid() {
		return orderid;
	}
	public void setOrderid(String orderid) {
		this.orderid = orderid;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}

	

}